home *** CD-ROM | disk | FTP | other *** search
/ American History: Interactive Maps & User's Guide / American History: Interactive Maps & User's Guide.iso / pc / ImapTest.dxr / 00004_2 choice Rollover script.ls < prev    next >
Encoding:
Text File  |  2000-01-25  |  691 b   |  22 lines

  1. on enterFrame
  2.   global IMapTest
  3.   set CurrentButton to the name of member the memberNum of sprite getDoneSpriteNumber(IMapTest)
  4.   set TheirAnswer1 to getMyFirstAnswer(IMapTest)
  5.   set TheirAnswer2 to getMySecondAnswer(IMapTest)
  6.   set CurrentQuestionType to getCurrentType(IMapTest)
  7.   case CurrentQuestionType of
  8.     5:
  9.       if ((TheirAnswer1 = 0) or (TheirAnswer2 = 0)) and (CurrentButton = "done_button") then
  10.         RollOverStatesTwoChoices(TheirAnswer1, TheirAnswer2, CurrentQuestionType)
  11.       end if
  12.     3, 4:
  13.       if (CurrentButton = "done_button") and (TheirAnswer1 = 0) then
  14.         RollOverStates(CurrentQuestionType)
  15.       end if
  16.   end case
  17. end
  18.  
  19. on exitFrame
  20.   go(the frame)
  21. end
  22.